package com.edais.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.edais.domain.UserRank;
import com.edais.persistence.UserRankMapper;

/**
 * 
 * 排行榜 dao
 * @author wuhan
 *
 */
@Repository
public class UserRankDao {

	@Autowired
	private UserRankMapper userRankMapper;

	/**
	 * 查询排行榜
	 * 
	 * @param map
	 * @return list
	 */
	public List<UserRank> queryUserRankList(Map<String, Object> map) {
		return userRankMapper.queryUserRankList(map);
	}

	/**
	 * 查询排行榜总条数
	 * 
	 * @param map
	 * @return int
	 */
	public int queryUserRankListCount() {
		return userRankMapper.queryUserRankListCount();
	}
}
